package com.taxi.driver.module.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.taxi.driver.data.entity.DriverEntity;

import java.io.Serializable;

public class WithdrawalVO implements Serializable{

    public static WithdrawalVO createFrom(DriverEntity entity) {
        if (entity == null) return new WithdrawalVO();
        String strJson = JSON.toJSONString(entity);
        return JSON.parseObject(strJson, WithdrawalVO.class);
    }

    @JSONField(name = "name")
    public String driverName; //司机姓名

    @JSONField(name = "balance")
    public double balance; //余额

    @JSONField(name = "withdrawalCash")
    public double audit_money; //审核中提现金额

    @JSONField(name = "poundageType")
    public int poundageType;//手续费类型 1:金额 2.百分比

    @JSONField(name = "poundageMoney")
    public double poundageMoney;//手续费金额

    @JSONField(name = "percent")
    public double percent;//手续费百分比

}
